<table id='ticketList' class='grid' cellspacing='0' cellpadding='0' style='width: 100%'>
    {if !empty($ticketListTitle)}<caption>{$ticketListTitle}</caption>{/if}
    <thead>
        <tr>
            <th style="width: 80px;">{translate}No.{/translate}</th>
            <th style="width: 250px;">{translate}Full name{/translate}</th>
            <th style="width: 120px;">{translate}Patient's ID_1{/translate}</th>
            <th style="width: 150px;">{translate}Birth year{/translate} ({translate}Age{/translate})</th>
            <th style="width: 150px;">{translate}Check-in{/translate}</th>
            <th style="width: 150px;">{translate}Examination type{/translate}</th>
        </tr>
    </thead>
    <tbody>
    {if empty($ticketList)}
        <tr>
            <td colspan='6'>{translate}There is no in-day patients{/translate}</td>
        </tr>
    {else}
        {foreach from=$ticketList item=ticket}
        <tr>
            <td>{$index++}</td>
            <td><a href="javascript:{$jsFunction}('{$ticket.ticket_id}', '{$dialogId}')">{$ticket.patient_name}</a></td>
            <td>{$ticket.patient_code}</td>
            <td>{$ticket.birth_year} ({$ticket.age})</td>
            <td>{$ticket.created}</td>
            <td>{$ticket.examination_type}</td>
        </tr>
        {/foreach}
    {/if}
    </tbody>
</table>